home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Graphics⁄Sound / delta ƒ / delta-sound..doc < prev    next >
Encoding:
Text File  |  1989-12-07  |  1.3 KB  |  47 lines  |  [TEXT/EDIT]

  1. cat delta-sound.hqx
  2. Date: Sat, 4 Nov 89 13:58:00 EET
  3. From: Juri Munkki <jmunkki@hut.fi>
  4. To: info-mac@sumex-aim.stanford.edu
  5.  
  6. The following file contains the Think C 3.0 source code for
  7. the Delta Sound conversion utility. After processing with
  8. Delta Sound, a sound file will usually compress to a smaller
  9. size with the Huffman (and often LZW) compression algorithm.
  10.  
  11. This program does not reduce the amount of information in the
  12. file and the process is fully reversible. The source code is
  13. included so that interested people can improve it for their
  14. own purposes.
  15.  
  16. What does the application do?
  17.  
  18. 1) Start with Old=128.
  19. 2) Read a byte into New.
  20. 3) Write Old-New.
  21. 4) Old=New
  22. 5) Go to step 2 if there is more data.
  23.  
  24. To reverse the process:
  25.  
  26. 1) Start with Old=128.
  27. 2) Read a byte into New.
  28. 3) Old=Old-New
  29. 4) Write Old
  30. 5) Go to step 2 if there is more data.
  31.  
  32. As you can see, the amount of information does not change.
  33. The resource fork is left intact. This means that it is not
  34. useful to try to use this program on files that have the
  35. sounds in the resource fork. A separate resource converter
  36. could be written.
  37.  
  38. This process will usually save an additional 20% in your
  39. archives. The amount saved depends on the file, but higher
  40. sampling rates usually save more space.
  41.  
  42. Juri Munkki
  43. jmunkki@hut.fi
  44. jmunkki@kampi.hut.fi
  45. jmunkki@fingate.bitnet
  46.  
  47.